<include file="Common:head" title="控制板" />
<include file="Common:left" title="控制板" />
<div class="admin-content">
    <div class="admin-content-body">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong> /
                <small>个人中心</small>
            </div>
        </div>

        <ul class="am-avg-sm-1 am-avg-md-4 am-margin am-padding am-text-center admin-content-list ">
            <li><a href="#" class="am-text-success"><span
                    class="am-icon-btn am-icon-file-text"></span><br/>新增页面<br/>2300</a></li>
            <li><a href="#" class="am-text-warning"><span
                    class="am-icon-btn am-icon-briefcase"></span><br/>成交订单<br/>308</a></li>
            <li><a href="#" class="am-text-danger"><span class="am-icon-btn am-icon-recycle"></span><br/>昨日访问<br/>80082</a>
            </li>
            <li><a href="#" class="am-text-secondary"><span
                    class="am-icon-btn am-icon-user-md"></span><br/>在线用户<br/>3000</a></li>
        </ul>

        <div class="am-g">
            <div class="am-u-sm-12">
                <table class="am-table am-table-bd am-table-striped admin-content-table">
                    <thead>
                    <tr>
                        <th>用户</th>
                        <th>头像</th>
                        <th>修改时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>

                        <td>{$data['name']}</td>
                            <td><a href="#"><img src="__PUBLIC__/Upload/{$data['pic']}" alt="暂无头像" class="am-comment-avatar" width="48" height="48"></a></td>
                            <td>{$data['user_creattime']}</td>
                            <td>
                                <if condition="($data.state eq 1)">已通过<else/>未通过</if>
                            </td>
                        <td>
                            <if condition="($data.state eq 1)">
                                <a href="{:U('UserInfo/changeState',array('id'=>$data['users_id'],'state'=>$data['state']))}" style="color: #ef1900" ><i class="fa fa-toggle-off fa-fw"></i></a>
                                <else/>
                                <a href="{:U('UserInfo/changeState',array('id'=>$data['users_id'],'state'=>$data['state']))}" style="color: #4aff16" ><i class="fa fa-toggle-on fa-fw"></i></a>
                            </if>

                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<include file="Common:foot" title="控制板" />